package com.kehutong.auth.entity;

import org.coraframework.orm.Entity;
import org.coraframework.orm.annotation.Column;
import org.coraframework.orm.annotation.Table;

/**
 * 短信发送
 */
@Table("t_sms_code")
public class SmsCode  extends Entity {

    private static final long serialVersionUID = -1;

    protected SmsCode(String id) {
        super(id);
    }
    
    @Column(comment="当前发送者的session")
    private String sessionId;

    @Column(comment = "手机号")
    private String mobile;

    @Column(comment = "验证码")
    private String code;

    @Column(length = 255,comment = "短信内容")
    private String context;

    @Column(comment = "短信状态")
    private String state;

    @Column(length = 255,comment = "短信发送结果")
    private String message;
    
    public String getSessionId() {
		return sessionId;
	}

	public void setSessionId(String sessionId) {
		this.sessionId = sessionId;
	}

	public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getContext() {
        return context;
    }

    public void setContext(String context) {
        this.context = context;
    }
}
